<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
<meta http-equiv="pragma" content="no-cache"> 
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>填写</title>
</head>

<script type="text/javascript">
	window.onload = function() {
		if ("${isLogin}" == "true") {
			var urlMap = eval('(${urlMap})');
			var key = window.dialogArguments.document
					.getElementById("my:通用扩展控件选择${operate}").value;
			var path = urlMap[key];
			if (key && path) {
				var nowHeight = null;
				if (window.innerHeight) {//FF
					nowHeight = window.innerHeight;
				} else {
					nowHeight = document.documentElement.clientHeight;
					if (!nowHeight) {
						nowHeight = document.body.clientHeight;
					}
				}
				var nowWidth = null;
				if (window.innerWidth) {//FF
					nowWidth = window.innerHeight;
				} else {
					nowWidth = document.documentElement.clientWidth;
					if (!nowWidth) {
						nowWidth = document.body.clientWidth;
					}
				}

				var iframe = document.createElement("iframe");
				iframe.src = path + (path.indexOf('?') == -1 ? "?" : "&")
						+ "temp=" + Math.random();
				iframe.width = nowWidth;
				iframe.height = nowHeight;
				if (!window.dialogArguments.document
						.getElementById("my:填写界面滚动条")) {
					iframe.scrolling = 'no';
				} else {
					if (window.dialogArguments.document
							.getElementById("my:填写界面滚动条").value == 'x') {
						iframe.style["overflow-Y"] = "hidden";
					} else if (window.dialogArguments.document
							.getElementById("my:填写界面滚动条").value == 'y') {
						iframe.style["overflow-X"] = "hidden";
					}
				}
				iframe.frameborder = '0';
				iframe.marginwidth = '0';
				iframe.marginheight = '0';
				iframe.allowtransparency = 'yes';
				iframe.style.width = nowWidth;
				iframe.style.height = nowHeight;
				document.body.appendChild(iframe);

			} else {
				alert("未查找到对应的表单控件页面");
				window.close();
			}
		} else {
			alert("用户还未登陆，不能访问该网页");
			window.close();
		}
	};
</script>
<body>
	<div id='lodingDiv'
		style='display: none; filter: alpha(opacity =                       30); opacity: 0.3; z-index: 12001; text-align: center; position: absolute; width: 100%; height: 600px; background: url("./apps_res/myCommonJS/img/loding.gif") no-repeat center center #666; left: 0; top: 0;'>
		&nbsp;</div>
</body>
</html>